package com.studio701.carguard.service.imp;

import com.studio701.carguard.controller.CarFaultController;
import com.studio701.carguard.pojo.CarFault;
import com.studio701.carguard.mapper.CarFaultMapper;
import com.studio701.carguard.service.ICarFaultService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-03-16
 */
@Service
public class CarFaultServiceImpl extends ServiceImpl<CarFaultMapper, CarFault> implements ICarFaultService {

    @Autowired
    CarFaultMapper carFaultMapper;

    @Override
    public boolean updateCarFaultByCarId(CarFault carFault) {
        return carFaultMapper.updateCarFaultByCarId(carFault);
    }

    @Override
    public CarFault getByCId(Integer id) {
        return carFaultMapper.getByCId(id);
    }

}
